package com.chengduservice.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * create by yongli on 2020-06-26 18:01
 */
@CrossOrigin
@RestController
public class HealthyController {
    private static final Logger logger = LoggerFactory.getLogger(HealthyController.class);

    @GetMapping("/health")
    public String health() {
        logger.info("I am health!");
        return "I am health";
    }
}
